package com.ruoyi.project.filemgr.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.TreeEntity;

/**
 * 文件对象 filemgr
 * 
 * @author filemgr
 * @date 2024-02-02
 */
public class Filemgr extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 地址 */
    @Excel(name = "地址")
    private String url;

    /** 分享 */
    @Excel(name = "分享")
    private String share;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 父文件 */
    @Excel(name = "父文件")
    private Long pId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    public Filemgr getFilemgr() {
        return filemgr;
    }

    public void setFilemgr(Filemgr filemgr) {
        this.filemgr = filemgr;
    }

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;
    private Filemgr filemgr;

    
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setShare(String share) 
    {
        this.share = share;
    }

    public String getShare() 
    {
        return share;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setpId(Long pId) 
    {
        this.pId = pId;
    }

    public Long getpId() 
    {
        return pId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("url", getUrl())
            .append("share", getShare())
            .append("type", getType())
            .append("pId", getpId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .toString();
    }
}
